package myJs.myPkg.reactRouterDom

import slinky.readwrite.ObjectOrWritten

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import myJs.Implicits._
import myJs.myPkg.reactTransitionGroup._
/**
	*Created by yz on 20/9/2023
	*/

case class NavigateOptions(state: JDJAn)

@js.native
trait Navigate extends js.Object {

  def apply(to: String): Unit = js.native

  def apply(to: Int): Unit = js.native

  def apply(to: String, options: ObjectOrWritten[NavigateOptions]): Unit = js.native

}

@JSImport("react-router-dom", JSImport.Default)
@js.native
object ReactRouterDOM extends js.Object {

  def useNavigate(): Navigate = js.native

  def useLocation(): Location = js.native

}
